﻿#include "login.h"
#include "ui_login.h"
#include "mainwindow.h"
#include "changeip.h"
#include "datasqlshow.h"

Login::Login(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::Login)

{
    ui->setupUi(this);
    QStatusBar* zt = this->statusBar();
    //添加左侧信息
    QLabel* copyRight = new QLabel(QString::fromLocal8Bit("北京大学南昌创新研究院"), this);
    zt->addWidget(copyRight);
    //ui->pushButton_3->hide();
}

Login::~Login()
{
    delete ui;
}

void Login::on_pushButton_clicked()
{
    MainWindow *mainwindow =new MainWindow(this);
    
    mainwindow->showbutton(1,0);
    mainwindow->show();
   // mainwindow->pushButton_3->hide();
}


void Login::on_pushButton_2_clicked()
{
    ChangeIp *changeip =new ChangeIp(this);
    changeip->show();
}


void Login::on_pushButton_3_clicked()
{
    /*QMessageBox::information(nullptr, QString::fromLocal8Bit("信息"), QString::fromLocal8Bit("对不起，您没有使用权限"), QMessageBox::Ok);*/

    DataSqlshow *datasqlshow =new DataSqlshow(this);
    datasqlshow->show();

}

